import Vue from 'vue'
import VueRouter from 'vue-router'


Vue.use(VueRouter)

const routes = [
	{
		path:'/',
		name:'home',
		component: ()=> import ('@/views/Home'),
		meta:{
			isShowTab:true
		}
	},
	{
		path:'/classify',
		name:'classify',
		component: ()=> import ('@/views/Classify'),
		meta:{
			isShowTab:true
		}
	},
	{
		path:'/carts',
		name:'carts',
		component: ()=> import ('@/views/Carts'),
		meta:{
			isShowTab:true
		}
	},
	{
		path:'/user',
		name:'user',
		component: ()=> import ('@/views/User'),
		meta:{
			isShowTab:true
		}
	},
	{
		path:'/details',
		name:'details',
		component: ()=> import ('@/views/Details'),
		meta:{
			isShowTab:false
		}
	},
	{
		path:'/search',
		name:'search',
		component: ()=> import ('@/views/Search'),
		meta:{
			isShowTab:false
		}
	},
	{
		path:'/classlist',
		name:'classlist',
		component: ()=> import ('@/views/Classlist'),
		meta:{
			isShowTab:false
		}
	},
	{
		path:'/details2',
		name:'details2',
		component: ()=> import ('@/views/Details2'),
		meta:{
			isShowTab:false
		}
	}
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
